import request from '@/utils/request'

// 查询告警处理记录列表
export function listAlarmHandleLog(query) {
  return request({
    url: '/system/alarmHandleLog/list',
    method: 'get',
    params: query
  })
}

// 查询告警处理记录详细
export function getAlarmHandleLog(handleId) {
  return request({
    url: '/system/alarmHandleLog/' + handleId,
    method: 'get'
  })
}

// 新增告警处理记录
export function addAlarmHandleLog(data) {
  return request({
    url: '/system/alarmHandleLog',
    method: 'post',
    data: data
  })
}

// 修改告警处理记录
export function updateAlarmHandleLog(data) {
  return request({
    url: '/system/alarmHandleLog',
    method: 'put',
    data: data
  })
}

// 删除告警处理记录
export function delAlarmHandleLog(handleId) {
  return request({
    url: '/system/alarmHandleLog/' + handleId,
    method: 'delete'
  })
}
